<?php

namespace backend\assets;

use yii;

class AjaxFileUploadAsset extends \yii\web\AssetBundle
{
    public function init()
    {
        parent::init();
        if( yii::$app->getRequest()->getBaseUrl() !== "" ){
            $this->sourcePath = '@backend/web';
        }
    }

    public $css = [
    ];

    public $js = [
        'static/js/ajaxfileupload.js',
    ];

    public $depends = [
        'setting\assets\JqueryAsset',
    ];
}
